package com.bawei.property.api

import com.bawei.common.api.BaseApiServer
import com.bawei.net.BaseResponse
import com.bawei.property.entity.ColorListResultEntity
import com.bawei.property.entity.ParkApplyResultEntity
import com.bawei.property.entity.ParkListResultEntity
import okhttp3.MultipartBody
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.Multipart
import retrofit2.http.POST
import retrofit2.http.Part

/**
 * Author: Jason Zhang
 * Date: 2024/12/20
 * Desc: 物业管理的相关API接口
 */
interface PropertyApiServer: BaseApiServer {

    //查询车位列表
    @POST("/sysParking/selParking")
    suspend fun getParkingList(): ParkListResultEntity

    @POST("/sysColor/selColor")
    suspend fun getColorList(): ColorListResultEntity

    @Multipart
    @POST("/fileUpload")
    suspend fun uploadCarImages(@Part list: MutableList<MultipartBody.Part>): BaseResponse

    //获取车位申请列表
    @POST("/sysApply/selAllApply")
    suspend fun getParkApplyList(@Body body: RequestBody): ParkApplyResultEntity

}